package public

const (
	ValidatorKey        = "ValidatorKey"
	TranslatorKey       = "TranslatorKey"
	AdminSessionInfoKey = "AdminSessionInfoKey"
	LoadTypeHTTP        = 0
	LoadTypeTCP         = 1
	LoadTypeGRPC        = 2
	HTTPRuleTypeDomain  = 1 // 域名接入
	HTTPRuleTypePrefix  = 0 // 前缀接入
	RedisFlowDayKey     = "flow_day_count"
	RedisFlowHourKey    = "flow_hour_count"
	// QPS 统计 key 前缀
	FlowTotal         = "flow_total"    // 全站
	FlowServicePrefix = "flow_service_" // 服务
	FlowAppPrefix     = "flow_app_"     // 租户
	JwtSignKey        = "my_sign_key"
	JwtExpires        = 60 * 60
)

var (
	LoadTypeMap = map[int]string{
		LoadTypeHTTP: "HTTP",
		LoadTypeTCP:  "TCP",
		LoadTypeGRPC: "GRPC",
	}
)
